package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreEntyCdSetsPK implements Serializable {
    public Long entityCodeSetId;
    public Long entityId;
    public Long entityVersionNum;

    public RimCoreEntyCdSetsPK() {
    }

    public RimCoreEntyCdSetsPK(Long entityCodeSetId, Long entityId, 
                               Long entityVersionNum) {
        this.entityCodeSetId = entityCodeSetId;
        this.entityId = entityId;
        this.entityVersionNum = entityVersionNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreEntyCdSetsPK) {
            final RimCoreEntyCdSetsPK otherRimCoreEntyCdSetsPK = (RimCoreEntyCdSetsPK) other;
            final boolean areEqual = 
                (otherRimCoreEntyCdSetsPK.entityCodeSetId.equals(entityCodeSetId) && otherRimCoreEntyCdSetsPK.entityId.equals(entityId) && otherRimCoreEntyCdSetsPK.entityVersionNum.equals(entityVersionNum));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
